package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AdminWarnDao;
import ex.com.jm.food.entity.Warnnings;
import ex.com.jm.food.service.AdminWarnService;

public class AdminWarnServiceImpl implements AdminWarnService {

	private AdminWarnDao adminWarnDao;
	public AdminWarnDao getAdminWarnDao() {
		return adminWarnDao;
	}

	public void setAdminWarnDao(AdminWarnDao adminWarnDao) {
		this.adminWarnDao = adminWarnDao;
	}

	@Override
	public List<Warnnings> getWarnnings(int initPage, int pageRow, String name,
			String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminWarnDao().getWarnnings(initPage, pageRow, name, s_date, e_date);
	}

	@Override
	public int warnCount(String name, String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminWarnDao().warnCount(name, s_date, e_date);
	}

	@Override
	public Object saveWarn(Warnnings warnnings) {
		// TODO Auto-generated method stub
		return this.getAdminWarnDao().saveWarn(warnnings);
	}

	@Override
	public void updateWarn(Warnnings warnnings) {
		// TODO Auto-generated method stub
           this.getAdminWarnDao().updateWarn(warnnings);
	}

	@Override
	public void delWarn(int id) {
		// TODO Auto-generated method stub
     this.getAdminWarnDao().delWarn(id);
	}

	@Override
	public Warnnings editWarn(int id) {
		// TODO Auto-generated method stub
		return this.getAdminWarnDao().editWarn(id);
	}

}
